/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.ad.dao;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.ad.entity.Ad;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

/**
 * 广告DAO接口
 * 
 * @author chenxm
 * @version 2019-04-17
 */
@MyBatisDao
public interface AdDao extends CrudDao<Ad> {

	List<Ad> findListByAgent(Map<String, Object> params);

	/**
	 * 查询代理商广告计划总数
	 * 
	 * @param id
	 * @return
	 */
	long findCountByAgent(@Param("id") String id);

}